package com.vacomall.controller;

import com.vacomall.common.util.LogUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.UnsupportedEncodingException;

/**
 * 首页控制器
* @ClassName: IndexController
* @author Gaojun.Zhou
* @date 2016年12月8日 下午8:42:40
*
 */
@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping(value = {"/","/index"})  
    public  String index(Model model){
        LogUtils.INFO_LOG.info("login success !");
        return "X-admin/index";
    }  
}
